<!DOCTYPE html>
<html class="loginHtml">
<head>
    <meta charset="utf-8">
    <title>登录--后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="csrf-token" content="{{ csrf_token() }}" />
    <link rel="icon" href="/favicon.ico">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/css/public.css" media="all" />
    <link rel="stylesheet" href="/login/login.css" media="all" />
</head>
<body class="loginBody">
<form class="layui-form" id="login-form" action="{{  route('do_login')  }}" method="post">
    <input type="hidden"   id="_token"  name="_token" value="{{ csrf_token() }}">
    <div class="login_face"><img src="/images/face.jpg" class="userAvatar"></div>
    <div class="layui-form-item input-item">
        <label for="userName">用户名</label>
        <input type="text" placeholder="请输入用户名" autocomplete="off" id="username"  name="username" class="layui-input" lay-verify="required">
    </div>
    <div class="layui-form-item input-item">
        <label for="password">密码</label>
        <input type="password" placeholder="请输入密码" autocomplete="off" id="password" name="password" class="layui-input" lay-verify="required">
    </div>
    <!--        <div class="layui-form-item input-item" id="imgCode">-->
    <!--            <label for="code">验证码</label>-->
    <!--            <input type="text" placeholder="请输入验证码" autocomplete="off"  name="LoginForm[captcha]" class="layui-input">-->
<?php
//                 echo yii\captcha\Captcha::widget([
//                        'name' => 'captcha',
//                        'template' => '{image}',
//                        'captchaAction' =>  '/site/captcha',
//                        'imageOptions'=>[
//                            'id' => 'code',
//                            'alt'=>'点击换图',
//                            'title'=>'点击换图',
//                            'style'=>'cursor:pointer',
//                        ]
//                 ]);
?>
<!--        </div>-->
    <div class="layui-form-item">
        <button class="layui-btn layui-block" lay-filter="login" lay-submit>登录</button>
    </div>
</form>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/js/public.js"></script>
<script type="text/javascript" src="/login/login.js"></script>
<script type="text/javascript" src="/js/cache.js"></script>
</body>
</html>